home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / AutoScroll < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     AutoScroll
  2. Sent:        6/13/96 12:13 PM
  3. Received:    6/13/96 12:31 PM
  4. From:        Rob Cope, rob@eclipse.cpcn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9. A few questions/comments about AutoScroll:
  10.  
  11. 1) I had wanted to implement the auto scroll in such a way that it scrolls faster the father the away the user drags.  It appears I can get it to work for drag selection and resizing, but not for dragging content.  This is because the FW_CDropTracker is destroyed if the user drags outside the frame.  As far as I can tell, there is no way around this limitation -- is that correct.
  12.  
  13. 2) My next thought was to implement the auto scroll the way the finder does, by scrolling when the user drags over scroll bars, window TitleBar, or within 15 pixels of the left edge of the window.  Since the AutoScrollInset is only a fixed, however, it is impossible for me to set the inset on the left differently from the other 3 sides.  As a future enhancement, I would suggest making the inset a rect, or at least a point.
  14.  
  15. 3) Thinking that autoscrolling to the left would be rare in my part anyway, I made my AutoScrollInset -1 so that it would start scrolling 1 pixel outside the content view (i.e. in the scroll bars like Finder). It worked fine for drag selection and resizing, but not for dragging.  Any idea why?
  16.  
  17. Rob Cope
  18. Eclipse Services
  19.